<?php

namespace frontend\models\download;

use Yii;

/**
 * This is the model class for table "edu_virtual".
 *
 * @property integer $virtual_id
 * @property integer $user_id
 * @property string $username
 * @property integer $virtual_num
 * @property string $vartual_detail
 * @property integer $virtual_addtime
 * @property integer $virtual_status
 * @property string $virtual_serial
 */
class Virtual extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'edu_virtual';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['user_id', 'virtual_num', 'virtual_addtime', 'virtual_status'], 'integer'],
            [['username'], 'string', 'max' => 50],
            [['vartual_detail'], 'string', 'max' => 100],
            [['virtual_serial'], 'string', 'max' => 20]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'virtual_id' => 'Virtual ID',
            'user_id' => 'User ID',
            'username' => 'Username',
            'virtual_num' => 'Virtual Num',
            'vartual_detail' => 'Vartual Detail',
            'virtual_addtime' => 'Virtual Addtime',
            'virtual_status' => 'Virtual Status',
            'virtual_serial' => 'Virtual Serial',
        ];
    }
}
